package com.ruoyi.experiment.model;

import com.ruoyi.experiment.domain.Experiment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class Experiments extends Experiment {
    private List<Long> ids;
    public Experiment getOne(Long id,Integer type,Long sampleId){
        Experiment experiment = new Experiment();
        experiment.setExperimentId(id);
        experiment.setExperimentDate(getExperimentDate());
        experiment.setExpermentType(type);
        experiment.setExperimentName(getExperimentName());
        experiment.setExperimentEndDate(getExperimentEndDate());
        experiment.setExperimentNumber(getExperimentNumber());
        experiment.setExperimentPerson(getExperimentPerson());
        experiment.setExperimentPrice(getExperimentPrice());
        experiment.setExperimentRemark(getExperimentRemark());
        experiment.setJob(getJob());
        experiment.setJobId(getJobId());
        experiment.setJobPrice(getJobPrice());
        experiment.setType(getType());
        experiment.setTypeId(getTypeId());
        experiment.setSampleId(sampleId);
        experiment.setJobManagerId(getJobManagerId());
        return experiment;
    }
}
